<template>
    <transition name="fade-transform" mode="out-in">
        <Cboard v-if="reload" :options="options" />
    </transition>
</template>
<script>
import {
    BASE_URL
} from '@/config/env'
export default {
    data() {
        return {
            reload: true,
            options: {}
        }
    },
    watch: {
        $route: {
            handler: function () {
                const { id } = this.$route.params
                this.reload = false
                this.options = {
                    url: BASE_URL,
                    id: id,
                    token: '2097B83A990AE9B580A82704DEE34782',
                    storeKey: id,
                }
                this.$nextTick(() => {
                    this.reload = true
                })
            },
            immediate: true
        }
    },
}
</script>